/********************************************************************************
* @file    dfu.h
* @author  jianqiang.xue
* @version V1.0.0
* @date    2021-04-09
* @brief   NULL
********************************************************************************/

#ifndef __DFU_H
#define __DFU_H

/* Includes ------------------------------------------------------------------*/
#include <stdint.h>
#include <stdbool.h>

typedef struct
{
    uint32_t file_size;
    uint16_t file_sum;
    uint16_t timestamp;
    uint32_t current_size;
    uint8_t  secret_key;
    uint8_t  old_pack_id;
    bool  first_rx;
} dfu_file_info_t;

/* Public Function Prototypes ------------------------------------------------*/
void dfu_main(void);
#endif




